i was trying to make autoplay work in youtube videos,
in the html parameters i tried autoplay=1, autoplay=true and it does not seem to work,
seeing the source code it was creating the param name/value pair correctly,

\n

Your browser is not able to display this multimedia content.

how can i make autoplay work (also for google videos),
support appreciated,
thanks
rizz

Comments

fax8’s picture

this has been asked frequently

http://drupal.org/node/105631

rizz’s picture

the flashvars params was there for google and was working fine for google videos.
for you tube videos the flashvars params was not there so i had to copy that
" $output .= 'param name="movie" value="http://www.youtube.com/v/' . check_plain($node->vidfile) . '"
param name="FlashVars" value="playerMode=embedded&autoplay=1" ' . "\n"
. _video_get_parameters($node) .
'

'. t('Your browser is not able to display this multimedia content.') .'

"
and put autoplay=1
hope this helps some one
thanks and it works great
rizz

fax8’s picture

drupal.org is filtering your previous post... please post it using tags.

rizz’s picture

Status: Active » Fixed

updating the post:
for you-tube to work autoplay identify this code in video.module and make changes :

function theme_video_play_youtube($node) {
  $width = ($node->videox ? $node->videox : '425');
  $height = ($node->videoy ? $node->videoy : '350');


  // this will be executed by not Internet Explorer browsers
----
----
----
$output .= '<param name="movie" value="http://www.youtube.com/v/' . check_plain($node->vidfile) . '" />
  <param name="FlashVars" value="playerMode=embedded&autoplay=1" />' . "\n"
  . _video_get_parameters($node) .
'<p>'. t('Your browser is not able to display this multimedia content.') .'</p>
</object>';
----
----
----
  return $output;
}

regards
rizz
http://www.rizwan.in

Anonymous’s picture

Status: Fixed » Closed (fixed)